package me.flyray.bsin.server.domain._gen;

import java.util.Map;
import java.util.HashMap;
import java.util.Arrays;
import java.util.List;

import java.io.Serializable;

import me.flyray.bsin.server.domain.SysUserPost;

// tell cpd to start ignoring code - CPD-OFF
/**
 *  Sysuserpost: sys_user_post
 */
@SuppressWarnings({"PMD"})
public class _SysUserPost implements Serializable{
    
    /* 用户id: USER_ID VARCHAR */
    public static final String PROP_NAME_userId = "userId";
    public static final int PROP_ID_userId = 1;
    
    /* 岗位id: POST_ID VARCHAR */
    public static final String PROP_NAME_postId = "postId";
    public static final int PROP_ID_postId = 2;
    

    private static int _PROP_ID_BOUND = 3;

    

    public static final List<String> PK_PROP_NAMES = Arrays.asList(PROP_NAME_userId,PROP_NAME_postId);
    public static final int[] PK_PROP_IDS = new int[]{PROP_ID_userId,PROP_ID_postId};

    private static final String[] PROP_ID_TO_NAME = new String[3];
    private static final Map<String,Integer> PROP_NAME_TO_ID = new HashMap<>();
    static{
      
          PROP_ID_TO_NAME[PROP_ID_userId] = PROP_NAME_userId;
          PROP_NAME_TO_ID.put(PROP_NAME_userId, PROP_ID_userId);
      
          PROP_ID_TO_NAME[PROP_ID_postId] = PROP_NAME_postId;
          PROP_NAME_TO_ID.put(PROP_NAME_postId, PROP_ID_postId);
      
    }

    
    /* 用户id: USER_ID */
    private java.lang.String _userId;
    
    /* 岗位id: POST_ID */
    private java.lang.String _postId;
    

    public _SysUserPost(){
    }

    protected SysUserPost newInstance(){
       return new SysUserPost();
    }

    public String orm_entityName() {
      return "me.flyray.bsin.server.domain.SysUserPost";
    }

    
    /**
     * 用户id: USER_ID
     */
    public java.lang.String getUserId(){
         //onPropGet(PROP_ID_userId);
         return _userId;
    }

    /**
     * 用户id: USER_ID
     */
    public void setUserId(java.lang.String value){
        this._userId = value;
    }
    
    /**
     * 岗位id: POST_ID
     */
    public java.lang.String getPostId(){
         //onPropGet(PROP_ID_postId);
         return _postId;
    }

    /**
     * 岗位id: POST_ID
     */
    public void setPostId(java.lang.String value){
        this._postId = value;
    }
    
}
// resume CPD analysis - CPD-ON
